<form method="post" action="<?=$_SERVER['PHP_SELF']?>">
  <table width="400">
  	<caption><?=$title?></caption>
    <tr>
      <td>可选商品属性</td>
      <td></td>
      <td>已选商品属性</td>
    </tr>
    <tr>
      <td width="40%">
      	<select style="width: 200px;" multiple="multiple" id="left" size="8" ondblclick="moveOption('left', 'right')">
  		<?php foreach($unused_attribute as $attribute) { ?>
          <option value="<?=$attribute->id?>"><?=$attribute->title_cn?></option>
		<?php } ?>
        </select>
      </td>
      <td width="20%" align="center">
      	<br/><br/>
      	<input type="button" value=" >> " onclick="moveOption('left', 'right')">
        <br/>
        <input type="button" value=" << " onclick="moveOption('right', 'left')">
      </td>
      <td width="40%">
      	<select style="width: 200px;" multiple="multiple" id="right" name="used" size="8" ondblclick="moveOption('right', 'left')">
  		<?php foreach($used_attribute as $attribute) { ?>
          <option value="<?=$attribute->id?>"><?=$attribute->title_cn?></option>
		<?php } ?>
        </select>
      </td>
    </tr>
    <tr>
      <td colspan="3">
          <button onclick="return changepos('right',-1)">优先级上升</button>
          <button onclick="return changepos('right',1)">优先级下降</button>
          <button onclick="return gototop('right')">优先级置顶</button>
		  <button type="submit">保存</button>
		  <button onclick="history.go(-1)">取消</button>
      </td>
    </tr>
  </table>
  <input type="hidden" name="result" id="result" size="40" value="" />
</form>
<?=html::script('js/ff_fixed.js')?>
<?=html::script('js/selected.js')?>